package com.tledu.production.mapper.device;

import com.tledu.production.model.device.DeviceMaintain;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMaintainMapper {
    //分页
    List<DeviceMaintain> list();

    //添加
    Integer insert(DeviceMaintain deviceMaintain);


    //更新
    Integer update(DeviceMaintain deviceMaintain);

    //删除
    Integer delete(String deviceMaintainId);

    //根据id查询
    DeviceMaintain findById(String deviceMaintainId);

    //搜索(根据不同字段搜索)
    List<DeviceMaintain> search(@Param("type") String type, @Param("searchText") String  searchText);

    //根据id去找对应的备注(富文本)
    String findEdit(String deviceMaintainId);

    //富文本保存
    int save(String deviceMaintainId);
}
